{% extends "account/base.html" %}

{% load i18n %}
{% load bootstrap_tags %}
{% load account %}

{% block title %}{% trans "Password reset" %}{% endblock %}

{% user_display request.user as user_display %}

{% block body_outer %}
<div class="page-header">
  <h2>{% trans "Password Reset" %}</h2>
</div>
{% if user.is_authenticated %}
  {% include "account/snippets/already_logged_in.html" %}
{% endif %}
<div class="row">
  <div class="col-md-8">
    <p class="lead">{% trans "Forgotten your password?" %}</p>
    <p class="lead">{% trans "Enter your email address below, and we'll send you an email allowing you to reset it." %}</p>
    <form method="POST" action="{% url 'account_reset_password' %}">
      <fieldset>
      {% csrf_token %}
      {{ form.as_p }}
        <div class="form-actions">
          <button type="submit" class="btn btn-primary">{% trans "Reset my password" %}</button>
        </div>
      </fieldset>
    </form>
    <p class="grid-spacer">{% blocktrans %}If you have any trouble resetting your password, contact us at <a href="mailto:{{ THEME_ACCOUNT_CONTACT_EMAIL }}">{{ THEME_ACCOUNT_CONTACT_EMAIL }}</a>.{% endblocktrans %}</p>
  </div>
</div>
{% endblock %}
{% block extra_body %}
  <script>
    $("#id_email").focus();
  </script>
{% endblock %}
